<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta name="format-detection" content="telephone=no, address=no, email=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="misapplication-tap-highlight" content="no" />
		<meta name="HandheldFriendly" content="true" />
		<title>修改手机号</title>
		<link rel="stylesheet" href="../../css/mui.min.css" type="text/css" charset="utf-8" />
		<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav mui-header">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">修改手机号</h1>
		</header>
		<div class="mui-content">
			 <form class="mui-input-group group-form ease transition" id="group-form">
				<div class="mui-input-row" style="background:none;">
					<label>手机号</label>
					<span style="line-height: 0.6rem;margin-left:0.15rem;" id="mobile"></span>
				</div>
				<div style="margin-bottom:0.29rem;overflow: hidden;">
					<div class="mui-input-row" style="float:left;width:61.40625%;margin-bottom:0px;">
						<label style="width:43%">验证码</label>
						<input type="text" class="mui-input-clear" id="vcode" placeholder="验证码" style="width:57%">
					</div>
					<button type="button" class="mui-btn sendvcode" id="sendMsg">获取验证码</button>

				</div>
				
				<div style="text-align: center;color:#f00;font-size:12px;">
					如原手机号无法使用，请联系您的上级渠道协助处理.
				</div>
				<div id="message" style="color:#f00" class="none transition">
					<label>用户名或者密码错误</label>
				</div>

				<div class="mui-button-row" style="margin-top:0.5rem">
					<button type="button" class="mui-btn mui-btn-primary mui-btn-full" id="nextStep" style="height:44px;background:#f1c40f;color:#fff;border-color:#f1c40f">下一步</button>
				</div>

			</form>
		</div>

	</body>
	<script src="../../js/resize.js"></script>
	<script src="../../js/ajaxFun.js"></script>
	<script src="../../js/mui.min.js"></script>
	<script src="../../js/app.js"></script>
	<!--<script type="text/javascript" src="js/update.js"></script>-->
	<script>
		(function($, doc) {
			$.plusReady(function() {
				plus.nativeUI.closeWaiting();
				var userInfo = JSON.parse(localStorage.getItem('$users') || '[]')
				document.getElementById("mobile").innerHTML = userInfo.mobile;
		 
				app.sendVcode('01');/*修改密码*/
				
				 var nextStep=document.getElementById("nextStep");
				 nextStep.addEventListener('tap',function(){
				 	var vcode=document.getElementById("vcode").value;
				 	if(!vcode){
				 		plus.nativeUI.alert('请填写验证码！');
				 		return false;
				 	}
				 	/*验证验证码*/
				 	ajaxFun.postFun(baseUrl+'traderInfoController/verifSendCode.do',{verificationCode:vcode},'',function(){
				 		openWindow('personSafeNewPhone.html', 'personSafeNewPhone', {}) 
				 	})
				 	
				 })
			})
		}(mui, document))
	</script>

</html>